/**
 * Project Name:sc-parent-service
 * File Name:ItemsServiceImpl.java
 * Package Name:com.sc.service.impl
 * Date:2018年6月28日上午11:42:18
 * Copyright (c) 2018, bluemobi All Rights Reserved.
 */

package com.sc.service.impl;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sc.mapper.mapperhand.HanditemsMapper;
import com.sc.pojo.Facility;
import com.sc.pojo.Items;
import com.sc.service.ItemsService;

/**
 * Description: <br/>
 * Date: 2018年6月28日 上午11:42:18 <br/>
 * 
 * @author pengchengwang
 * @version
 * @see
 */
@Service
public class ItemsServiceImpl implements ItemsService {
    @Autowired
    private HanditemsMapper itemsMapper;

    /**
     * 查询项目的列表（简单介绍）
     *
     * @see com.sc.service.ItemsService#selectItemsAllInfo()
     */
    @Override
    public List<Items> selectItemsAllInfo() {

        // Auto-generated method stub
        return itemsMapper.selectItemsAllInfo();
    }

    /**
     * 当点击项目的更多时查询项目的详细介绍，根据项目的id查询
     *
     * @see com.sc.service.ItemsService#selectItemsByIdInfo(int)
     */
    @Override
    public List<Items> selectItemsByIdInfo(int id) {

        // Auto-generated method stub
        return itemsMapper.selectItemsByIdInfo(id);
    }

    /**
     * 根据条件模糊查询数据
     *
     * @see com.sc.service.ItemsService#selectDymicAll(java.util.HashMap)
     */
    @Override
    public List<Facility> selectDymicAll(HashMap<String, Object> map) {

        // Auto-generated method stub
        return itemsMapper.selectDymicAll(map);
    }

    /**
     * 查询全部五张表中的信息
     *
     * @see com.sc.service.ItemsService#selectAllFiveInfo(int)
     */
    @Override
    public List<Facility> selectAllFiveInfo(int id) {

        // Auto-generated method stub
        return itemsMapper.selectAllFiveInfo(id);
    }

}
